﻿using FileService.Domain.Entities;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FileService.Domain
{
    public interface ITabRepository
    {

        Task<int> AddAsync<T>(T item);
        Task<T> FindByIdAsync<T>(object id);
        Task<int> UpdateAsync<T>(T entity);
        Task<int> UpdateAsync<T>(IEnumerable<T> entities);
       Task<int> DeleteAsync<T>(T item);
        Task<TimeTab> FindTimeTabByNameAsync(string name);

        //获取TimeTab排序根据时间排序
        Task<IEnumerable<TimeTab>> QueryTimeTabAsync();


        Task<IEnumerable<T>> QueryListByParentIdAsync<T>(long id) where T:class, IParentId;
    }
}
